package com.lu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.core.annotations.DataScope;
import com.lu.model.entity.SysStore;
import com.lu.support.datascope.SimpleDataScopePermission;

import java.util.List;

/**
 * <p>
 * 门店 Mapper 接口
 * </p>
 *
 * @author currentCodeAuthor
 * @since 2022-07-31
 */
public interface SysStoreMapper extends BaseMapper<SysStore> {

    @DataScope(name = "relation_id", handler = SimpleDataScopePermission.class)
    List<SysStore> list();

    @DataScope(name = "relation_id", handler = SimpleDataScopePermission.class, groupBy = "name")
    List<SysStore> groupByList();

}
